home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch15 / 15fig12.wrl < prev    next >
Text File  |  1996-09-22  |  922b  |  41 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material {
  8.             diffuseColor 1.0 0.0 1.0
  9.         }
  10.     }
  11.     geometry Extrusion {
  12.         creaseAngle 1.57
  13.         beginCap FALSE
  14.         endCap   FALSE
  15.         crossSection [
  16.         # Circle
  17.              1.00  0.00,   0.92 -0.38,
  18.              0.71 -0.71,   0.38 -0.92,
  19.              0.00 -1.00,  -0.38 -0.92,
  20.             -0.71 -0.71,  -0.92 -0.38,
  21.             -1.00 -0.00,  -0.92  0.38,
  22.             -0.71  0.71,  -0.38  0.92,
  23.              0.00  1.00,   0.38  0.92,
  24.              0.71  0.71,   0.92  0.38,
  25.              1.00  0.00
  26.         ]
  27.         spine [
  28.         # Circle
  29.              2.00 0.0  0.00,   1.85 0.0 0.77,
  30.              1.41 0.0  1.41,   0.77 0.0 1.85,
  31.              0.00 0.0  2.00,  -0.77 0.0 1.85,
  32.             -1.41 0.0  1.41,  -1.85 0.0 0.77,
  33.             -2.00 0.0  0.00,  -1.85 0.0 -0.77,
  34.             -1.41 0.0 -1.41,  -0.77 0.0 -1.85,
  35.              0.00 0.0 -2.00,   0.77 0.0 -1.85,
  36.              1.41 0.0 -1.41,   1.85 0.0 -0.77,
  37.              2.00 0.0  0.00,
  38.         ]
  39.     }
  40. }
  41.